home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
BANDOG.ARJ
/
PASSWD.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-01-05
|
435b
|
24 lines
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
main()
{
int i, stime;
long ltime;
/* Seed random number generator with current time */
ltime = time( NULL );
stime = (unsigned)ltime / 2;
srand( stime );
/* Print three random letters */
for( i = 1; i <= 3; i++ )
putchar( rand() / 1260 + 65 );
/* Print three random digits */
for( i = 1; i <= 3; i++ )
putchar( rand() / 3276 + 48 );
}